import { ProForm, ProFormRadio, ProFormSelect, ProFormText, ProFormTextArea } from "@ant-design/pro-components"
import { useDictOptions } from "@/hooks"
const AppJwtForm = () => {
  let { data: statusOptions } = useDictOptions('sys_normal_disable')
  return <>
    <ProForm.Item name='id' hidden></ProForm.Item>
    <ProForm.Item name='version' hidden></ProForm.Item>

    <ProFormText
      colProps={{ lg: 12, md: 12, sm: 24 }}
      name="appName"
      label="应用名称"
      placeholder="请输入应用名称"
      rules={[{ required: true, message: '中文名称不能为空' }]}
    />

    <ProFormText
      colProps={{ lg: 12, md: 12, sm: 24 }}
      name="appId"
      label="ApiKey"
      placeholder="应用id不能为空"
      rules={[{ required: true, message: '应用id不能为空' }]}
    />
    <ProFormText
      colProps={{ lg: 12, md: 12, sm: 24 }}
      name="appSecret"
      label="ApiSecret"
      placeholder="请输入ApiSecret"
      rules={[{ required: true, message: '应用密码不能为空' }]}
    />
    <ProFormTextArea
      rows={4}
      name="remark"
      label="备注"
      placeholder="请输入内容"
    />
    <ProFormRadio.Group
      colProps={{ lg: 12, md: 12, sm: 24 }}
      label="启用状态:(0启用,1停用)"
      name="status"
      options={statusOptions}
    />
  </>
}



export default AppJwtForm